1
0
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:
krateng 2022-04-09 21:24:48 +02:00
parent 24dfa41ad9
commit abde7e72c4
3 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -1,5 +1,6 @@
import random
import datetime
from doreah.io import ask
@ -66,10 +67,10 @@ 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)
if ask("Generate random scrobbles?",default=False):

View File

@ -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