Browse Source

[O] Optimize print flag

Azalea (on HyDEV-Daisy) 3 years ago
parent
commit
3b2fb773d3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hyfetch/main.py

+ 2 - 2
hyfetch/main.py

@@ -131,8 +131,8 @@ def create_config() -> Config:
         flags = flags[flags_per_row:]
 
         # Print by row
-        for line in range(len(current[0])):
-            printc('  '.join(flag[line] for flag in current))
+        for line in zip(*current):
+            printc('  '.join(line))
 
         print()