-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-skip-nro-decom-clean' into release-skip-nro-dec…
…om-clean
- Loading branch information
Showing
457 changed files
with
857 additions
and
29,329 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""payment-societies | ||
Revision ID: 179a7b0089ce | ||
Revises: 6be595afb9ba | ||
Create Date: 2024-08-27 16:45:02.229938 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '179a7b0089ce' | ||
down_revision = '6be595afb9ba' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust!! ### | ||
op.create_table('payment_societies', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('nr_num', sa.String(length=10), nullable=True), | ||
sa.Column('corp_num', sa.String(20), nullable=True), | ||
sa.Column('request_state', sa.String(length=40), nullable=True), | ||
sa.Column('payment_status', sa.String(length=50), nullable=True), | ||
sa.Column('payment_date', sa.DateTime(), nullable=True), | ||
sa.Column('payment_json', postgresql.JSONB(astext_type=sa.Text()), nullable=True), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('payment_societies') | ||
# ### end Alembic commands ### |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
__version__ = '1.1.61' | ||
|
||
__version__ = '1.1.61' |
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"""Payment_societies keep data for society from home legancy app | ||
""" | ||
from . import db | ||
from datetime import datetime | ||
from sqlalchemy.dialects.postgresql import JSONB | ||
from datetime import datetime | ||
|
||
class PaymentSociety(db.Model): | ||
__tablename__ = 'payment_societies' | ||
|
||
id = db.Column(db.Integer, primary_key=True) | ||
nrNum = db.Column('nr_num', db.String(10), unique=True) | ||
corpNum = db.Column('corp_num', db.String(20), unique=True) | ||
requestState = db.Column('request_state', db.String(40), unique=True) | ||
paymentState = db.Column('payment_status', db.String(50), unique=True) | ||
paymentDate = db.Column('payment_date', db.DateTime(timezone=True), default=datetime.utcnow) | ||
paymentJson = db.Column('payment_json', JSONB) | ||
|
||
def json(self): | ||
return {"id": self.id, | ||
"nrNum": self.nrNum, | ||
"corpNum": self.corpNum, | ||
"requestState": self.requestState, | ||
"paymentState": self.paymentState, | ||
"paymentDate": self.paymentDate, | ||
"paymentJson": self.paymentJson | ||
} | ||
|
||
def save_to_db(self): | ||
db.session.add(self) | ||
db.session.commit() | ||
|
||
def save_to_session(self): | ||
db.session.add(self) |
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
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
Oops, something went wrong.