Skip to content

Commit

Permalink
chore: update prod frontend client url (#476)
Browse files Browse the repository at this point in the history
* Update prod frontend client url

* Add checker for empty login fields
  • Loading branch information
Mubangizi authored Dec 11, 2023
1 parent 44641d6 commit b3950da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/controllers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ def post(self):

login_data = request.get_json()

if login_data is None:
return {"message": "No input data provided"}, 400

validated_user_data, errors = user_schema.load(login_data)

if errors:
Expand Down Expand Up @@ -1003,12 +1006,12 @@ def get(self):

elif validated_data_query.get('start') and not validated_data_query.get('end'):
validated_data_query['creation_date'] = {"$gte": datetime.combine(validated_data_query.get('start'),
datetime.min.time()).isoformat(' ')}
datetime.min.time()).isoformat(' ')}
validated_data_query.pop('start', None)

elif not validated_data_query.get('start') and validated_data_query.get('end'):
validated_data_query['creation_date'] = {"$lte": datetime.combine(validated_data_query.get('end'),
datetime.max.time()).isoformat(' ')}
datetime.max.time()).isoformat(' ')}
validated_data_query.pop('end', None)

# get logs
Expand Down
2 changes: 1 addition & 1 deletion helm/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ environment:
ADMIN_PSQL_USER: crane
APP_MAIL_PASSWORD: ${{ MAIL_PASSWORD }}
APP_MAIL_USERNAME: [email protected]
CLIENT_BASE_URL: https://cranecloud.io
CLIENT_BASE_URL: https://app.cranecloud.io
DATABASE_URI: ${{ DATABASE_URL }}
MONGO_URI: ${{ MONGO_URI }}
FLASK_APP: server.py
Expand Down

0 comments on commit b3950da

Please sign in to comment.