UPD. Issue resolved through the support.
Don't repeat my mistakes, backup everything. Twice and then some.
So ~20 min ago I accidentally overwrote flask_app.py (a very dumb move on my part). Any chance there is a backup from, say, yesterday, somewhere on the server? I'd be very grateful. If not, guess I have to write the program again, but I've decided to ask first.