dayday0calories / CITS5505-Group-Project

CITS5505 Group Project
MIT License
0 stars 0 forks source link

search funtion updated #15

Closed MomobamiKiraly closed 1 month ago

lingering126 commented 1 month ago

Hi Chi, I reviewed your code and I found the `search_results.html' doesnt have styles and it's inconsistent with other pages. Could you please add some styles to make it consistent?

MomobamiKiraly commented 1 month ago

Sure, I will check it and make some changed to suit our design

lingering126 commented 1 month ago

Thanks for modifying👍, but I found a bug here. When I search as a visitor, it works, but after I logged in, I will encounter a bug says "undefinederror" ('user' is undefined). I think that's because you haven't import current user to the search function, you can resolve the bug by importing current user. Screenshot 2024-05-15 135711

MomobamiKiraly commented 1 month ago

Thanks mate for pointing that. I've fixed this bug so whoever logged in could use search-post function correctly. In app.py, I imported current_user and use this fuction.

lingering126 commented 1 month ago

Thanks mate for pointing that. I've fixed this bug so whoever logged in could use search-post function correctly. In app.py, I imported current_user and use this fuction.

Nice, it works, thanks