Address the issue of using an immutable cursor in the file flaskr/blog.py. The previous implementation attempted to modify the 'posts' object, which is immutable, leading to runtime errors. This commit refactors the code to ensure that the cursor is handled correctly, preventing any attempts to modify immutable objects. This change resolves the problem by introducing a mutable data structure to store the necessary information, thereby maintaining the integrity of the cursor and avoiding potential errors. |
||
|---|---|---|
| .. | ||
| static | ||
| templates | ||
| __init__.py | ||
| auth.py | ||
| blog.py | ||
| db.py | ||
| schema.sql | ||