mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00

+ delete older migrations ... oops + change migratrions from "migrations" to "dbmigrations" + restructure migrations, order them based on release version + add a utils/decorators.py file with a coroutine decorator
12 lines
217 B
Python
12 lines
217 B
Python
def coroutine(func):
|
|
"""
|
|
Decorator: primes `func` by advancing to first `yield`
|
|
"""
|
|
|
|
def start(*args, **kwargs):
|
|
cr = func(*args, **kwargs)
|
|
next(cr)
|
|
return cr
|
|
|
|
return start
|