aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/manage.py
diff options
context:
space:
mode:
authorJocelynDelalande <JocelynDelalande@users.noreply.github.com>2018-01-07 23:01:34 +0100
committerGitHub <noreply@github.com>2018-01-07 23:01:34 +0100
commit34a21616506402c764d481cc7a28e2b9818518f9 (patch)
treeb7b3079157c9c12976c0df7f329a341e843629b2 /ihatemoney/manage.py
parent4ab8863eb20ea75fc0b3990471a01f4874735f3c (diff)
parentc24ee6f1c4e1c1090f0833f65b795512fc03de30 (diff)
downloadihatemoney-mirror-34a21616506402c764d481cc7a28e2b9818518f9.zip
ihatemoney-mirror-34a21616506402c764d481cc7a28e2b9818518f9.tar.gz
ihatemoney-mirror-34a21616506402c764d481cc7a28e2b9818518f9.tar.bz2
Merge pull request #308 from spiral-project/almet/fix-template-inclusion-packaging
Include all .j2 files in the packaged version.
Diffstat (limited to 'ihatemoney/manage.py')
-rwxr-xr-xihatemoney/manage.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ihatemoney/manage.py b/ihatemoney/manage.py
index 797e6c4..315cfac 100755
--- a/ihatemoney/manage.py
+++ b/ihatemoney/manage.py
@@ -4,7 +4,7 @@ import os
import pkgutil
import random
import sys
-from getpass import getpass
+import getpass
from flask_script import Manager, Command, Option
from flask_migrate import Migrate, MigrateCommand
@@ -20,11 +20,11 @@ class GeneratePasswordHash(Command):
"""Get password from user and hash it without printing it in clear text."""
def run(self):
- password = getpass(prompt='Password: ')
+ password = getpass.getpass(prompt='Password: ')
print(generate_password_hash(password))
-class ConfigTemplate(Command):
+class GenerateConfig(Command):
def get_options(self):
return [
Option('config_file', choices=[
@@ -74,7 +74,7 @@ def main():
manager = Manager(app)
manager.add_command('db', MigrateCommand)
manager.add_command('generate_password_hash', GeneratePasswordHash)
- manager.add_command('generate-config', ConfigTemplate)
+ manager.add_command('generate-config', GenerateConfig)
manager.run()