From d50384bf30b98f6e39e4e90fd6ad3cefd3533f14 Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Tue, 21 Dec 2021 22:48:21 +0100 Subject: [PATCH] lololol --- dl_tweets.sh | 2 +- fahrplan.py | 2 +- public/.gitkeep | 0 index.css => public/index.css | 0 index.html => public/index.html | 0 index.js => public/index.js | 0 6 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 public/.gitkeep rename index.css => public/index.css (100%) rename index.html => public/index.html (100%) rename index.js => public/index.js (100%) diff --git a/dl_tweets.sh b/dl_tweets.sh index c0289fe..082f148 100644 --- a/dl_tweets.sh +++ b/dl_tweets.sh @@ -1,4 +1,4 @@ #!/bin/bash export BEARER_TOKEN=$(cat token) curl -s -X GET -H "Authorization: Bearer $BEARER_TOKEN" \ - "https://api.twitter.com/2/tweets/search/recent?query=%23rC3cwtv&tweet.fields=created_at&expansions=author_id,attachments.media_keys&media.fields=preview_image_url&user.fields=profile_image_url" > tweets-rc3.json + "https://api.twitter.com/2/tweets/search/recent?query=%23rC3cwtv&tweet.fields=created_at&expansions=author_id,attachments.media_keys&media.fields=preview_image_url&user.fields=profile_image_url" > public/tweets-rc3.json diff --git a/fahrplan.py b/fahrplan.py index ac3accb..13cf794 100644 --- a/fahrplan.py +++ b/fahrplan.py @@ -146,7 +146,7 @@ if __name__ == "__main__": return ev_date + grace > now and ev_date + datetime.timedelta(minutes=ev["duration"]) > now events = filter(is_upcoming, events) - with open("fahrplan.json", "w") as f: + with open("public/fahrplan.json", "w") as f: json.dump(list(events), f) diff --git a/public/.gitkeep b/public/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/index.css b/public/index.css similarity index 100% rename from index.css rename to public/index.css diff --git a/index.html b/public/index.html similarity index 100% rename from index.html rename to public/index.html diff --git a/index.js b/public/index.js similarity index 100% rename from index.js rename to public/index.js