forked from brmlab/brmbar-github
Old scripts: mark them deprecated and make them exit with status 1.
This commit is contained in:
parent
01491deec3
commit
a8e4b3216d
4 changed files with 11 additions and 0 deletions
|
@ -4,6 +4,7 @@ import argparse
|
|||
import brmbar
|
||||
import math
|
||||
from brmbar import Database
|
||||
import sys
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(usage = "File format: EAN amount total_price name, e.g. 4001242002377 6 167.40 Chio Tortillas")
|
||||
|
@ -38,5 +39,7 @@ def main():
|
|||
print("Total is {}".format(total))
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("!!! THIS PROGRAM NO LONGER WORKS !!!")
|
||||
sys.exit(1)
|
||||
main()
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ from brmbar import Database
|
|||
|
||||
import brmbar
|
||||
|
||||
print("!!! THIS PROGRAM NO LONGER WORKS !!!")
|
||||
sys.exit(1)
|
||||
|
||||
def help():
|
||||
print("""BrmBar v3 (c) Petr Baudis <pasky@ucw.cz> 2012-2013
|
||||
|
|
|
@ -6,6 +6,9 @@ from brmbar import Database
|
|||
|
||||
import brmbar
|
||||
|
||||
print("!!! THIS PROGRAM NO LONGER WORKS !!!")
|
||||
sys.exit(1)
|
||||
|
||||
db = Database.Database("dbname=brmbar")
|
||||
shop = brmbar.Shop.new_with_defaults(db)
|
||||
currency = shop.currency
|
||||
|
|
|
@ -6,6 +6,9 @@ from brmbar import Database
|
|||
|
||||
import brmbar
|
||||
|
||||
print("!!! THIS PROGRAM NO LONGER WORKS !!!")
|
||||
sys.exit(1)
|
||||
|
||||
from flask import *
|
||||
app = Flask(__name__)
|
||||
#app.debug = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue