You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more advanced usage of these scripts see below.
21
27
22
28
# Summary of Accounting Procedure
23
29
@@ -150,6 +156,18 @@ docker run --pull=always -it --rm \
150
156
151
157
and (usually after about 30 seconds) find the transfer file written to your current working directory.
152
158
153
-
### Managing Dependencies
159
+
# Creating payment data for syncing
160
+
161
+
The script `src/data_sync/sync_data.py` creates tables for syncing to dune. The scripts can be called with a table to sync, start and end times, and a flag for dropping old data.
162
+
163
+
To create order rewards tables with data from `2024-12-30` to `2025-01-02` use
This will update (or create, if they do not exist yet) the tables `order_data_{NETWORK}_2024_12` and `order_data_{NETWORK}_2025_01`.
168
+
169
+
The script requires the additional environment variable `ANALYTICS_DB_URL`.
170
+
171
+
# Managing Dependencies
154
172
Python libraries can be added to the `requirements.in` file. After this `pip-compile` or `python -m pip-compile` will update the `requirements.txt` for you (you may have to install the libry manually first).
155
173
Warning: this might take a long time for large changes or when you run pip-compile for the first time. Running the command with the `-v` flag can help keep track of what's happening.
0 commit comments