terry-li-hm
commited on
Commit
ยท
a885210
1
Parent(s):
a76b03e
Update `sv.py`
Browse files
sv.py
CHANGED
@@ -91,12 +91,6 @@ emo_set = {"๐", "๐", "๐ก", "๐ฐ", "๐คข", "๐ฎ"}
|
|
91 |
event_set = {"๐ผ", "๐", "๐", "๐ญ", "๐คง", "๐ท"}
|
92 |
|
93 |
|
94 |
-
def format_str(s):
|
95 |
-
for sptk in emoji_dict:
|
96 |
-
s = s.replace(sptk, emoji_dict[sptk])
|
97 |
-
return s
|
98 |
-
|
99 |
-
|
100 |
def format_str_v2(s):
|
101 |
sptk_dict = {}
|
102 |
for sptk in emoji_dict:
|
@@ -149,9 +143,6 @@ def time_to_seconds(time_str):
|
|
149 |
return round(int(h) * 3600 + int(m) * 60 + float(s), 9)
|
150 |
|
151 |
|
152 |
-
import datetime
|
153 |
-
|
154 |
-
|
155 |
def parse_time(time_str):
|
156 |
# Remove 's' if present at the end of the string
|
157 |
time_str = time_str.rstrip("s")
|
|
|
91 |
event_set = {"๐ผ", "๐", "๐", "๐ญ", "๐คง", "๐ท"}
|
92 |
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
def format_str_v2(s):
|
95 |
sptk_dict = {}
|
96 |
for sptk in emoji_dict:
|
|
|
143 |
return round(int(h) * 3600 + int(m) * 60 + float(s), 9)
|
144 |
|
145 |
|
|
|
|
|
|
|
146 |
def parse_time(time_str):
|
147 |
# Remove 's' if present at the end of the string
|
148 |
time_str = time_str.rstrip("s")
|