clean stuff

This commit is contained in:
2022-07-11 22:56:42 +02:00
parent d5d4ba3f2a
commit 2d6b537315
2 changed files with 39 additions and 24 deletions

View File

@ -63,6 +63,13 @@ def DashifyStr(s, Limit=32):
Str += c
return '-' + Str
# https://stackoverflow.com/a/34445090
def FindAllIndex(Str, Sub):
i = Str.find(Sub)
while i != -1:
yield i
i = Str.find(Sub, i+1)
def GetFullDate(Date):
if not Date:
return None