mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Moved scrobble generation to dev package
This commit is contained in:
parent
24dfa41ad9
commit
abde7e72c4
@ -13,6 +13,7 @@ from . import __pkginfo__ as pkginfo
|
||||
from . import globalconf
|
||||
from .proccontrol import tasks
|
||||
from .setup import setup
|
||||
from .dev import generate
|
||||
|
||||
|
||||
|
||||
@ -142,7 +143,7 @@ def main(*args,**kwargs):
|
||||
# admin scripts
|
||||
"import":tasks.import_scrobbles, # maloja import /x/y.csv
|
||||
"backup":tasks.backup, # maloja backup --targetfolder /x/y --include_images
|
||||
"generate":tasks.generate, # maloja generate 400
|
||||
"generate":generate.generate_scrobbles, # maloja generate 400
|
||||
"export":tasks.export, # maloja export
|
||||
# aux
|
||||
"info":print_info
|
||||
|
@ -1,5 +1,6 @@
|
||||
import random
|
||||
import datetime
|
||||
|
||||
from doreah.io import ask
|
||||
|
||||
|
||||
@ -66,9 +67,9 @@ def generate_track():
|
||||
|
||||
|
||||
|
||||
def generate(n=200):
|
||||
def generate_scrobbles(n=200):
|
||||
|
||||
from ...database.sqldb import add_scrobbles
|
||||
from ..database.sqldb import add_scrobbles
|
||||
|
||||
n = int(n)
|
||||
|
@ -1,4 +1,3 @@
|
||||
from .import_scrobbles import import_scrobbles
|
||||
from .backup import backup
|
||||
from .generate import generate
|
||||
from .export import export # read that line out loud
|
||||
|
Loading…
Reference in New Issue
Block a user