Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JSON using MQTT and PostgreSQL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vipul.v
JSON using MQTT and PostgreSQL
Commits
55f3c399
Commit
55f3c399
authored
Mar 29, 2023
by
vipul.v
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mqtt and postgresql updated again
parent
1e8db8a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
script/core/engine/subscriber.py
script/core/engine/subscriber.py
+2
-2
script/core/schema/schema_file.py
script/core/schema/schema_file.py
+1
-1
No files found.
script/core/engine/subscriber.py
View file @
55f3c399
...
@@ -37,8 +37,8 @@ class MqttConnectPostgresql:
...
@@ -37,8 +37,8 @@ class MqttConnectPostgresql:
tax_rate
=
invoice
[
'tax_rate'
],
tax_rate
=
invoice
[
'tax_rate'
],
total
=
invoice
[
'total'
],
total
=
invoice
[
'total'
],
paid
=
invoice
[
'paid'
],
paid
=
invoice
[
'paid'
],
payment_
method
=
invoice
.
get
(
'payment_method
'
),
payment_
date
=
invoice
.
get
(
'payment_date
'
),
payment_method
=
invoice
.
get
(
'payment_method'
)
)
)
invoices
.
append
(
invoice_data
)
invoices
.
append
(
invoice_data
)
with
Session
()
as
session
:
with
Session
()
as
session
:
...
...
script/core/schema/schema_file.py
View file @
55f3c399
...
@@ -19,7 +19,7 @@ class InvoiceDetails(Base):
...
@@ -19,7 +19,7 @@ class InvoiceDetails(Base):
tax_rate
=
Column
(
'tax_rate'
,
Float
)
tax_rate
=
Column
(
'tax_rate'
,
Float
)
total
=
Column
(
'total'
,
Float
)
total
=
Column
(
'total'
,
Float
)
paid
=
Column
(
'paid'
,
Boolean
)
paid
=
Column
(
'paid'
,
Boolean
)
payment_date
=
Column
(
'payment_date'
,
Date
)
payment_date
=
Column
(
'payment_date'
,
JSONB
)
payment_method
=
Column
(
'payment_method'
,
JSONB
)
payment_method
=
Column
(
'payment_method'
,
JSONB
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment