add dockerfile and gitea workflow

This commit is contained in:
2026-01-10 16:58:16 +01:00
parent d6359519a4
commit 1f971dba82
6 changed files with 154 additions and 0 deletions

2
app.py
View File

@@ -31,6 +31,8 @@ def index(namespace,project,name,value):
db.session.commit()
v = Webvar.query.filter(Webvar.namespace == namespace).filter(Webvar.project == project).filter(Webvar.name == name).first()
if v is None:
return "Not Found", '404', {'Content-Type': 'text/plain; charset=utf-8'}
return v.value, '200', {'Content-Type': 'text/plain; charset=utf-8'}
if __name__ == "__main__":