add dockerfile and gitea workflow
This commit is contained in:
2
app.py
2
app.py
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user