Skip to content

Commit

Permalink
fix QR_scan ObjectId not serializable (#191)
Browse files Browse the repository at this point in the history
* Fix user_read response

* solved the timestamp issue, which adds a timestamp whenever the user registered

* downgraded urllib3 version bc newer version isn't compatible with other dependencies

* modified test_validate.py to comply with the same user and password as other tests

* changed up the paramter of the call 'update' to satisfy Travis CI

* added pylint disable option for tests to pass

* solved the timestamp issue (#174)

* solved the timestamp issue, which adds a timestamp whenever the user registered

* downgraded urllib3 version bc newer version isn't compatible with other dependencies

* modified test_validate.py to comply with the same user and password as other tests

* changed up the paramter of the call 'update' to satisfy Travis CI

* added pylint disable option for tests to pass

* set up the new skeleton endpoint

* update /statistics method from GET to POST

* added logic code

* test comment

* wrote tests for /statistics endpoint and fixed buggy codes from prev hackathon

* test trial run

* New endpoint that would return the stats for a hackathon (#176)

* wrote tests for /statistics endpoint and fixed buggy codes from prev hackathon

* Resolve issues #179-182 for Spring 24 hackathon

* fix tests errors in /tests

* resolve test errors part2

* Ethan hack spr24 part2 (#189)

* Resolve test errors after failed build from Travis (#185)

* Fix user_read response

* solved the timestamp issue, which adds a timestamp whenever the user registered

* downgraded urllib3 version bc newer version isn't compatible with other dependencies

* modified test_validate.py to comply with the same user and password as other tests

* changed up the paramter of the call 'update' to satisfy Travis CI

* added pylint disable option for tests to pass

* solved the timestamp issue (#174)

* solved the timestamp issue, which adds a timestamp whenever the user registered

* downgraded urllib3 version bc newer version isn't compatible with other dependencies

* modified test_validate.py to comply with the same user and password as other tests

* changed up the paramter of the call 'update' to satisfy Travis CI

* added pylint disable option for tests to pass

* set up the new skeleton endpoint

* update /statistics method from GET to POST

* added logic code

* test comment

* wrote tests for /statistics endpoint and fixed buggy codes from prev hackathon

* test trial run

* New endpoint that would return the stats for a hackathon (#176)

* wrote tests for /statistics endpoint and fixed buggy codes from prev hackathon

* Resolve issues #179-182 for Spring 24 hackathon

* fix tests errors in /tests

* resolve test errors part2

---------

Co-authored-by: js324 <[email protected]>

* resolve issues #186-188

---------

Co-authored-by: js324 <[email protected]>

* add env variables to dev and prod config

* add env variables to dev and prod config part2

* fix dev config file

* fix QR_scan ObjectId not serializable

---------

Co-authored-by: js324 <[email protected]>
  • Loading branch information
ethxng and js324 authored Mar 21, 2024
1 parent dc2badf commit 58693df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qrscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def attend(user):
},
return_document=pymongo.ReturnDocument.AFTER)

return {'statusCode': 200, 'body': {'email': new_user['email'], 'new_count': new_user['day_of'][event], 'user_house': update_points}}
return {'statusCode': 200, 'body': {'email': new_user['email'], 'new_count': new_user['day_of'][event], 'user_house': new_user['house']}}

# TODO: revisit if it's valid for qr to be an email
user = users.find_one({'email': qr})
Expand Down

0 comments on commit 58693df

Please sign in to comment.