Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features-A8-HotFix #128

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ async def survey_web_app(message: types.ContentType.WEB_APP_DATA, state: FSMCont
supabase.table('TaskCollection').insert(
{'name': name, 'description': description, 'photo': photo, 'counter': counter, 'url': url,
'numberPoints': numberPoints, 'rightAnswers': rightAnswers}).execute()
await state.finish()
await EventMakerPanel.taskmenu.set()

@dp.message_handler(text='⬅️Назад в меню', state=EventMakerPanel.taskmenu)
async def back_to_event_main_menu(message: types.Message, state: FSMContext):
Expand Down Expand Up @@ -1128,6 +1130,8 @@ async def survey_web_app(message: types.ContentType.WEB_APP_DATA , state: FSMCon
description = data.get("description")
photo = data.get("photo")
supabase.table('TaskCollection').insert({'name': name, 'description': description, 'photo': photo, 'counter': counter, 'url': url,'numberPoints':numberPoints, 'rightAnswers':rightAnswers}).execute()
await state.finish()
await AdminPanel.taskmenu.set()

@dp.message_handler(text="⬅️Назад в меню", state=AdminPanel.taskmenu)
async def back_from_rules(message: types.Message, state: FSMContext):
Expand Down