mirror of
https://github.com/Llloooggg/Jarvis.git
synced 2026-03-06 20:16:23 +03:00
Добаил возможность удаления сценариев
This commit is contained in:
@@ -97,6 +97,7 @@ def get_user_scripts(current_user_id):
|
||||
|
||||
|
||||
def delete_scenario(scenario_id):
|
||||
print(scenario_id)
|
||||
scenario = Scenario.query.filter_by(id=scenario_id).first()
|
||||
db.session.delete(scenario)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user