Skip to content

Commit

Permalink
fix system image display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
inflac committed Aug 25, 2024
1 parent d8b0e7a commit bf885fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Please use the latest release for a stable and secure version of N2i.

## Todos
General:
* Fix bug that one image needs to be uploaded in order to make the runner functioning
* Add better solution for system slides
* Renew docstings
* Add instructions for the usage of reverseproxy
Expand Down
7 changes: 5 additions & 2 deletions services/runner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ def main(cms_url:str):
while(1):
image_urls = get_image_urls(cms_url)
system_image_urls = get_image_urls(cms_url + "/system")


for system_image in system_image_urls:
display_image(system_image, duration)

for i, image in enumerate(image_urls):
if i % 5 == 0:
if i % 6 == 5:
for system_image in system_image_urls:
display_image(system_image, duration)
display_image(image, duration)
Expand Down

0 comments on commit bf885fa

Please sign in to comment.