ickerio / cits3403

0 stars 1 forks source link

Enhancement: Added Guess functionality and updated templates #40

Closed ansuuuuuuu closed 5 months ago

ansuuuuuuu commented 5 months ago

main changes made here:

HenriScaff commented 5 months ago

Well done! Getting an error however, when I load /index.

"""

guessed_session = GuessSession.query.filter_by(user_id=current_user.id, sketch_id=sketch.id).first() NameError: name 'GuessSession' is not defined

"""

Will try fix.

HenriScaff commented 5 months ago

New error:

""" guessed_session = GuessSession.query.filter_by(user_id=current_user.id, sketch_id=sketch.id).first() AttributeError: 'AnonymousUserMixin' object has no attribute 'id' """

Will try fix.

HenriScaff commented 5 months ago

Fixed the above errors but finding other issues too.

Needs to be fixed and tested further before merging :) @ansuuuuuuu

HenriScaff commented 5 months ago

I adapted this PR @ansuuuuuuu in #41

Now merged and completed, well done.