Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
9805449f
Commit
9805449f
authored
Dec 17, 2020
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the things I made worse
parent
7b6dda83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
df-aggregator.py
df-aggregator.py
+5
-2
No files found.
df-aggregator.py
View file @
9805449f
...
@@ -916,7 +916,7 @@ def add_receiver(receiver_url):
...
@@ -916,7 +916,7 @@ def add_receiver(receiver_url):
print
(
"Duplicate receiver, ignoring."
)
print
(
"Duplicate receiver, ignoring."
)
else
:
else
:
receivers
.
append
(
receiver
(
receiver_url
))
receivers
.
append
(
receiver
(
receiver_url
))
print
(
f
"Receivers list is now {len(receivers)} long."
)
#
print(f"Receivers list is now {len(receivers)} long.")
new_rx
=
receivers
[
-
1
]
.
receiver_dict
()
new_rx
=
receivers
[
-
1
]
.
receiver_dict
()
to_table
=
[
new_rx
[
'station_id'
],
new_rx
[
'station_url'
],
new_rx
[
'auto'
],
to_table
=
[
new_rx
[
'station_id'
],
new_rx
[
'station_url'
],
new_rx
[
'auto'
],
new_rx
[
'mobile'
],
new_rx
[
'single'
],
new_rx
[
'latitude'
],
new_rx
[
'longitude'
]]
new_rx
[
'mobile'
],
new_rx
[
'single'
],
new_rx
[
'latitude'
],
new_rx
[
'longitude'
]]
...
@@ -980,7 +980,10 @@ def update_rx_table():
...
@@ -980,7 +980,10 @@ def update_rx_table():
longitude=?
longitude=?
WHERE station_id = ?'''
WHERE station_id = ?'''
DATABASE_EDIT_Q
.
put
((
command
,
to_table
))
DATABASE_EDIT_Q
.
put
((
command
,
to_table
))
DATABASE_RETURN
.
get
(
timeout
=
1
)
try
:
DATABASE_RETURN
.
get
(
timeout
=
1
)
except
:
pass
DATABASE_EDIT_Q
.
put
((
"done"
,
None
))
DATABASE_EDIT_Q
.
put
((
"done"
,
None
))
# conn.commit()
# conn.commit()
# conn.close()
# conn.close()
...
...
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