Qilan2 commited on
Commit
ccfb9cf
·
verified ·
1 Parent(s): 8c78879

Update ff.py

Browse files
Files changed (1) hide show
  1. ff.py +3 -1
ff.py CHANGED
@@ -90,8 +90,10 @@ def nv1():
90
  os.system('./f1 -c ./config.yaml')
91
  # threading.Thread(target=nv1, daemon=True).start()
92
  # threading.Thread(target=cf, daemon=True).start()
 
93
  def random_name(length=8):
94
- return ''.join(random.choices(string.ascii_lowercase + string.digits, k=length))
 
95
  def update_value(data: dict, key: str, new_value: str) -> dict:
96
  if key in data:
97
  data[key] = new_value
 
90
  os.system('./f1 -c ./config.yaml')
91
  # threading.Thread(target=nv1, daemon=True).start()
92
  # threading.Thread(target=cf, daemon=True).start()
93
+
94
  def random_name(length=8):
95
+ return ''.join(random.choices(string.ascii_lowercase, k=length))
96
+
97
  def update_value(data: dict, key: str, new_value: str) -> dict:
98
  if key in data:
99
  data[key] = new_value