oops need to open for writing if changing the tags dict

This commit is contained in:
Andrej Karpathy
2021-11-12 21:23:22 -08:00
parent 13a1d5ff48
commit f02766be2c
+1 -1
View File
@@ -254,7 +254,7 @@ def add(pid=None, tag=None):
@app.route('/del/<tag>')
def delete_tag(tag=None):
user = 'root'
with get_tags_db() as tags_db:
with get_tags_db(flag='c') as tags_db:
if user not in tags_db:
return "user does not have a library"