Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
sunprizrak committed Aug 17, 2023
1 parent 55fb384 commit d34d9b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions google_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ def update(self, name_sheet: str, data_table: dict):
gs = GoogleSheet(key='gs_credentials.json')
gs.auth()
gs.open('Vladimir_Ocr')
print('hello')

25 changes: 12 additions & 13 deletions screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,19 @@ def push(self, button):

@mainthread
def _error_callback(response):
# self.press_progress()
# print(response)
# print(response.args)
#
# if type(response.args[0]) is dict:
# error_text = response.args[0].get("error")
# self.app.open_snackbar(
# text=error_text,
# md_bg_color="red",
# pos_hint={'top': 1},
# )
#
# button.disabled = False
self.press_progress()
print(response)
print(response.args)

if type(response.args[0]) is dict:
error_text = response.args[0].get("error")
self.app.open_snackbar(
text=error_text,
md_bg_color="red",
pos_hint={'top': 1},
)

button.disabled = False

@mainthread
def _callback(response):
Expand Down

0 comments on commit d34d9b8

Please sign in to comment.