Skip to content

Commit

Permalink
update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay committed Jul 25, 2024
1 parent 83437b2 commit f90b101
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@
app = Flask(__name__)

def _record(website, status, recipe=''):
return

if not website:
return

payload = {'website': website, 'status': status, 'recipe': recipe}
requests.post(
'https://demo02.scratchdb.com/data?table=plainoldrecipe',
headers={'X-API-KEY': os.environ.get('SCRATCHDB_API_KEY')},
json=payload)
print(f"Fetched recipe: {website} {status} {recipe}")

def _query(q):
return []
Expand Down

0 comments on commit f90b101

Please sign in to comment.