Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxos committed Sep 17, 2023
1 parent 2d5016b commit ed7c68f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Empty file removed pyasync_server/client/actions.py
Empty file.
3 changes: 1 addition & 2 deletions pyasync_server/client/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from common.package import *



def pack_request_change_question_mark(sentence):
return pack_json({
'type': PACKAGE.REQUEST_CHANGE_QUESTION_MARK.name,
Expand All @@ -24,6 +23,6 @@ def unpack_and_process(package):
if package_type == PACKAGE.ANSWER_CHANGE_QUESTION_MARK.name:
return package.get('sentence')
elif package_type == PACKAGE.ANSWER_MARIADB_TEST.name:
return package.get('result')
return '\n' + package.get('result')
else:
return pack_unknown_package_type()
2 changes: 1 addition & 1 deletion pyasync_server/server/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def database_test(sql):
res = ''
for d in cur:
res += d[0] + '\n'
return res
return res[:-1]

0 comments on commit ed7c68f

Please sign in to comment.