Skip to content

Commit

Permalink
Update ssview.py
Browse files Browse the repository at this point in the history
update ssview.py
  • Loading branch information
cppla authored Dec 7, 2018
1 parent b085c6b commit 0694687
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/ssview.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
import time
from prettytable import PrettyTable

scroll = False
# todo: 程序在非gui环境下目前有闪屏的bug
scroll = True
clear = lambda: os.system('clear' if 'linux' in sys.platform else 'cls')

def sscmd(address):
Expand Down Expand Up @@ -66,4 +67,4 @@ def sscmd(address):
if __name__ == '__main__':
default = 'https://tz.cloudcpp.com/json/stats.json'
ads = sys.argv[1] if len(sys.argv)==2 else default
sscmd(ads)
sscmd(ads)

0 comments on commit 0694687

Please sign in to comment.