auto create project_urls.py
diff --git a/project_urls.py b/project_urls.py index 0adc6b5..0b83d4c 100644 --- a/project_urls.py +++ b/project_urls.py
@@ -6,32 +6,51 @@ ] project_urls = [ 'https://github.com/TinyTapeout/tt02-test-straight', - "https://github.com/Fraserbc/tt02-simon", - "https://github.com/TomKeddie/tinytapeout-2022-2", - "https://github.com/chrisruk/matrixchip", - "https://github.com/loxodes/tt02-submission-loxodes", - "https://github.com/migcorre/tt02-dc", - "https://github.com/grayresearch/tt02-s4ga", - "https://github.com/ryancor/tt02-submission-template", - "https://github.com/AidanGood/tt02-McCoy", - "https://github.com/azdle/binary-clock-asic", - "https://github.com/justinP-wrk/tt02-TinySensor", - "https://github.com/jar/tt02_sram", - "https://github.com/JensIMS/tt02-trafficlight", - "https://github.com/svd321/tt02-Ising", - "https://github.com/89Mods/tt2-AvalonSemi-5401", - "https://github.com/RiceShelley/tiny-fft", - "https://github.com/moyesw/tt02-moyesw-StreamIntegrator", - "https://github.com/Tschucker/tt02-submission-tiny-fir", - "https://github.com/steieio/tt02-submission-universal-sr", - "https://github.com/leardilap/tt02-LUTRAM", - "https://github.com/ekliptik/tt02-chase-the-beat", - "https://github.com/maehw/tt02-bcd-7segment-encoder", - "https://github.com/benevpi/tt02-LED-flasher", - "https://github.com/kuriousd/tt02-4bit-multiplier", - "https://github.com/89Mods/tt2-avalonsemi-TBB1143", - "https://github.com/TomKeddie/tinytapeout-2022-2a", - "https://github.com/mm21/tinytapeout2-led-matrix", - "https://github.com/argunda/tt02-TinyPFD", - "https://github.com/meriac/loading-animation", -] + "https://github.com/Fraserbc/tt02-simon", + "https://github.com/TomKeddie/tinytapeout-2022-2", + "https://github.com/chrisruk/matrixchip", + "https://github.com/loxodes/tt02-submission-loxodes", + "https://github.com/migcorre/tt02-dc", + "https://github.com/grayresearch/tt02-s4ga", + "https://github.com/ryancor/tt02-submission-template", + "https://github.com/AidanGood/tt02-McCoy", + "https://github.com/azdle/binary-clock-asic", + "https://github.com/justinP-wrk/tt02-TinySensor", + "https://github.com/jar/tt02_sram", + "https://github.com/JensIMS/tt02-trafficlight", + "https://github.com/svd321/tt02-Ising", + "https://github.com/89Mods/tt2-AvalonSemi-5401", + "https://github.com/RiceShelley/tiny-fft", + "https://github.com/moyesw/tt02-moyesw-StreamIntegrator", + "https://github.com/Tschucker/tt02-submission-tiny-fir", + "https://github.com/steieio/tt02-submission-universal-sr", + "https://github.com/leardilap/tt02-LUTRAM", + "https://github.com/ekliptik/tt02-chase-the-beat", + "https://github.com/maehw/tt02-bcd-7segment-encoder", + "https://github.com/benevpi/tt02-LED-flasher", + "https://github.com/kuriousd/tt02-4bit-multiplier", + "https://github.com/89Mods/tt2-avalonsemi-TBB1143", + "https://github.com/TomKeddie/tinytapeout-2022-2a", + "https://github.com/mm21/tinytapeout2-led-matrix", + "https://github.com/argunda/tt02-TinyPFD", + "https://github.com/meriac/loading-animation", + "https://github.com/yubex/tt02-tiny_egg_timer", + "https://github.com/peppergrayxyz/Potato-1", + "https://github.com/zoent/tt02-zoe-chip", + "https://github.com/nanikgeorge/tt02-submission-template", + "https://github.com/mbikovitsky/tt02-lfsr", + "https://github.com/teaandtechtime/tt02-submission-prbs15", + "https://github.com/rolfmobile99/tt02-submission-template", + "https://github.com/jar/tt02_freespeech", + "https://github.com/alanvgreen/tt02-siren", + "https://github.com/TheZoq2/smolfpga", + "https://github.com/moyesw/TT02-M0", + "https://github.com/yupferris/bitslam", + "https://github.com/ThorKn/tinytapeout02_pattern_player", + "https://github.com/proppy/tt02-xls-popcount", + "https://github.com/jeanthom/tt02-rc5-receiver", + "https://github.com/mmolteni-secpat/tinytapeout02_chiDOM", + "https://github.com/meriac/tt02-play-tune", + "https://github.com/phasenoisepon/tt02-phasenoisepon", + "https://github.com/13arn/tt02_counter_steamdeck", + ]
diff --git a/update_urls.py b/update_urls.py old mode 100644 new mode 100755 index e644fb3..b8d99f1 --- a/update_urls.py +++ b/update_urls.py
@@ -1,6 +1,11 @@ +#!/usr/bin/env python3 import stripe, os stripe.api_key = os.environ['STRIPE_TOKEN'] checkouts = stripe.checkout.Session.list(limit=400) + +with open("project_urls_init.py") as fh: + urls_header = fh.read() + git_urls = [] for checkout in checkouts: if checkout['payment_status'] == 'paid': @@ -9,5 +14,12 @@ git_urls.append(checkout['metadata']['github']) git_urls.reverse() -for git_url in git_urls: - print(git_url) +with open("project_urls.py", 'w') as fh: + fh.write(urls_header) + + for git_url in git_urls: + fh.write(f' "{git_url}",\n') + + fh.write(" ]\n") + +print(f"created project_urls.py with {len(git_urls)} projects")