Skip to content

Commit b003165

Browse files
authored
Merge pull request #65 from codeguru42/64-return-file-name
64 return file name
2 parents 23879b7 + 215bb9b commit b003165

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go_capture/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import io
22
import os
3+
from pathlib import Path
34

45
import firebase_admin
56
from celery import Celery
@@ -45,6 +46,7 @@ def process_image_task(image_filename, fcm_token):
4546
message = messaging.Message(
4647
data={
4748
"sgf": sgf_data,
49+
"image_filename": Path(image_filename).name,
4850
},
4951
token=fcm_token,
5052
)

0 commit comments

Comments
 (0)