Compare commits

...

2 Commits

1
.gitignore vendored

@ -1 +1,2 @@
env/
/dist/

@ -6,6 +6,6 @@ build-backend = "flit_core.buildapi"
module = "warren"
author = "josiah"
author-email = "me@jowj.net"
home-page = "https://jowj.net"
home-page = "https://git.awful.club/projects/warren"
classifiers = [ "License :: OSI Approved :: MIT License",]

@ -1,9 +1,11 @@
#!/usr/bin/env python
"""Listen for stuff with flask!
"""Part of the Weir project.
This will listen on two endpoints, and when data is
posted to the proper one, matching a particular format,
it will save that data to a local sqlite3 db."""
__version__ = "0.1.0"
from datetime import datetime
import logging
import os
@ -15,10 +17,8 @@ import sqlite3
import pdb
__version__ = "0.1.0"
logging.basicConfig(level=logging.DEBUG)
dbpath = "warren.db"
app = Flask(__name__)
@ -96,7 +96,6 @@ def weir():
return "OK"
except:
return "Error.", 400
if __name__ == '__main__':