Skip to content

Commit

Permalink
Modified anki card data
Browse files Browse the repository at this point in the history
  • Loading branch information
RicBent committed Dec 23, 2021
1 parent 0ef21d9 commit d8f6498
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/ankiexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def export_card(self, media_file, audio_track, text_primary, text_secondary, tim
info = r.json()
col_path = info['col_media_path']

file_base = str(int(round(time.time() * 1000)))
file_base = 'migaku-local-' + str(int(round(time.time() * 1000)))

img_name = file_base + '.' + self.image_format
img_path = os.path.join(col_path, img_name)
Expand Down Expand Up @@ -71,8 +71,6 @@ def export_card(self, media_file, audio_track, text_primary, text_secondary, tim
'batch_id': bulk_id,
}

data['batch_count'] = bulk_count

try:
r = requests.post(
F'http://{self.migaku_anki_host}:{self.migaku_anki_port}/sendcard',
Expand Down

0 comments on commit d8f6498

Please sign in to comment.