diff options
Diffstat (limited to 'python/api_quotes/__main__.py')
| -rw-r--r-- | python/api_quotes/__main__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/api_quotes/__main__.py b/python/api_quotes/__main__.py index ec926e8e..e0cf8708 100644 --- a/python/api_quotes/__main__.py +++ b/python/api_quotes/__main__.py @@ -8,7 +8,7 @@ logger = logging.getLogger(__name__) if __name__ == "__main__": asset_class = "CD" after = None - for i in range(1000): + while True: if data := MarkitAPI.get_data(asset_class, after): for row in data: try: @@ -17,7 +17,7 @@ if __name__ == "__main__": logger.error(f"Couldn't pase {row['quoteid']}: {e}") else: quote.stage() - quote.commit() + quote.commit() after = f"{row['receiveddatetime']},{asset_class}-9480-{row['quoteid']}" else: break |
