mirror of
				https://github.com/StefBuwalda/dashboard_test.git
				synced 2025-10-31 11:49:58 +00:00 
			
		
		
		
	Added a bool timeout to logs. This indicated whether or not the request timed out. Preparing data for the frontend graph is put into it's own function. When data is more than 6 s apart it is considered a break in connectivity and a None point is added.
This commit is contained in:
		
							
								
								
									
										37
									
								
								migrations/versions/3c05315d5b9b_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								migrations/versions/3c05315d5b9b_.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| """empty message | ||||
|  | ||||
| Revision ID: 3c05315d5b9b | ||||
| Revises: f87909a4293b | ||||
| Create Date: 2025-09-05 09:48:08.561045 | ||||
|  | ||||
| """ | ||||
|  | ||||
| from alembic import op | ||||
| import sqlalchemy as sa | ||||
|  | ||||
|  | ||||
| # revision identifiers, used by Alembic. | ||||
| revision = "3c05315d5b9b" | ||||
| down_revision = "f87909a4293b" | ||||
| branch_labels = None | ||||
| depends_on = None | ||||
|  | ||||
|  | ||||
| def upgrade(): | ||||
|     # ### commands auto generated by Alembic - please adjust! ### | ||||
|     with op.batch_alter_table("log", schema=None) as batch_op: | ||||
|         batch_op.add_column( | ||||
|             sa.Column( | ||||
|                 "timeout", sa.Boolean(), nullable=False, server_default="false" | ||||
|             ) | ||||
|         ) | ||||
|  | ||||
|     # ### end Alembic commands ### | ||||
|  | ||||
|  | ||||
| def downgrade(): | ||||
|     # ### commands auto generated by Alembic - please adjust! ### | ||||
|     with op.batch_alter_table("log", schema=None) as batch_op: | ||||
|         batch_op.drop_column("timeout") | ||||
|  | ||||
|     # ### end Alembic commands ### | ||||
		Reference in New Issue
	
	Block a user