Skip to content

Commit

Permalink
Merge branch 'master' of github.com:MLAB-project/MLABweb
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklik committed Sep 16, 2023
2 parents 1f2f7e0 + d0f829a commit 9c563a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions repository_downloader/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import json
from pymongo import MongoClient
import yaml
import time

# Získání proměnných z systémových proměnných
ORGANIZATION = os.environ.get('ORGANIZATION', "mlab-modules")
Expand Down Expand Up @@ -38,6 +39,7 @@ def get_organization_repositories():
print(f"Failed to fetch page {page}: {response.content}")
break
repositories += json.loads(response.text)
time.sleep(2)
return repositories

# Stažení repozitáře
Expand Down
2 changes: 1 addition & 1 deletion src/MLABweb/handlers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def get(self):
modules_list = list(modules)

self.set_header('Content-Type', 'application/json')
self.write(json.dumps(modules_list))
self.write(json.dumps(modules_list, indent=2)

class moduleImageUpload(BaseHandler):
'''
Expand Down

0 comments on commit 9c563a2

Please sign in to comment.