Skip to content

Commit

Permalink
Fixed Group Questions bug on Windows #113
Browse files Browse the repository at this point in the history
  • Loading branch information
octimot committed Jul 4, 2023
1 parent df5068d commit 66b9d35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storytoolkitai/core/toolkit_ops/transcription.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import hashlib
import shutil
import time
from datetime import datetime
import re
from threading import Timer

Expand Down Expand Up @@ -1275,7 +1276,8 @@ def group_id_from_name(self, group_name):
:return: the group id
"""
for i in range(100):
group_id = "{}{}".format(group_name.strip().lower().replace(' ', ''), time.strftime('%Y%m%d%H%M%S%f'))
group_id = "{}{}".format(group_name.strip().lower().replace(' ', ''),
datetime.now().strftime('%Y%m%d%H%M%S%f'))

if not self._transcript_groups or group_id not in self._transcript_groups:
return group_id
Expand Down

0 comments on commit 66b9d35

Please sign in to comment.