This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import datetime | |
import flask_sqlalchemy | |
import cocktail_site | |
import cocktail_site.utilities as utils | |
cocktail_site.app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db/drinks.db' | |
db = flask_sqlalchemy.SQLAlchemy(cocktail_site.app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FooBase: | |
def __init__(self, foo) | |
self.foo = foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CASE | |
WHEN DATEDIFF(d, LienStartDate, GETDATE()) - (DATEDIFF(yyyy, LienStartDate, GETDATE()) * 365) >= 0 | |
THEN Amount * (DATEDIFF(m, LienSTartDate, GETDATE()) * 0.01) | |
WHEN DATEDIFF(d, LienStartDate, GETDATE()) - (DATEDIFF(yyyy, LienStartDate, GETDATE()) * 365) < 0 | |
THEN Amount * ((DATEDIFF(m, LienStartDate, GETDATE()) - 1) * 0.01) END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CASE (DATEDIFF(d, LienStartDate, GETDATE()) - (DATEDIFF(yyyy, LienStartDate, GETDATE()) * 365)) | |
WHEN >= 0 THEN Amount * (DATEDIFF(m, LienStartDate, GETDATE()) * 0.01) | |
WHEN < 0 THEN Amount * ((DATEDIFF(m, LienStartDate, GETDATE()) - 1) * 0.01) |