Commit b681d05a authored by Krisjanis Rijnieks's avatar Krisjanis Rijnieks 🔥

Set year 2020 to upload script

parent 27b80331
Pipeline #134482 passed with stage
in 34 seconds
......@@ -5,6 +5,8 @@ import requests
import urllib
import os
year = 2020
try:
TOKEN = os.environ['TOKEN']
except:
......@@ -12,7 +14,7 @@ except:
sys.exit(1)
def site_project():
path = 'academany/fabacademy/2019/site'
path = 'academany/fabacademy/{}/site'.format(year)
encoded = urllib.parse.quote_plus(path)
response = requests.get('https://gitlab.fabcloud.org/api/v4/projects/{}?statistics=true&private_token={}'.format(encoded, TOKEN))
data = response.json()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment