BlitzKraft / saythanks.io

Spreading Thankfulness in Open Source.
https://saythanks.io
1.25k stars 154 forks source link

VersionUpdate #270

Open Adithya14255 opened 2 months ago

Adithya14255 commented 2 months ago

General version upgrade to make further updates more convenient -

ubuntu upgraded to 22.04

python upgraded to 3.10.12

fixed issues caused by upgrade :

-> unable to build wheel for greenlet- fixed by adding version requirement

-> cannot import markup from flask- fixed by importing markup from markupsafe

-> flask_common issue- fixed by removing flask_common package as it is deemed redundant (only initialized never used) (confirmed app is working after removal)

-> cannot import lxml html clean- fixed by adding lxml_html_clean package as module has been added as a seperate one also removed lxml as only one above package required

-> issue with how data is passed to con.execute() in storage.py fixed by modifying the code such that data is passed as dictionaries now

-> issue with how fetchall() returns data- fixed using a small list comprehension that makes it such that the earlier data from fetchall is converted to how it was returned in the past

The updated version has been tested by me to the best of my abilities, please let me know if any other issues persist Thank you!

@Pavithratrdev, please let me know about this update.