feat: implement user authentication with JWT token generation and validation

This commit is contained in:
2025-01-12 16:54:05 +00:00
parent 9190a2444a
commit 93caaf4ad3
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -39,6 +39,8 @@ html_content = ['<html>',
f'Total lines written: {return_count}', f'Total lines written: {return_count}',
'<br />', '<br />',
f'Total lines per hour: {lines_per_hour}', f'Total lines per hour: {lines_per_hour}',
'<br />',
f'Total hours: {hour_count}',
'</b>', '</b>',
'<br>', '<br>',
] ]
+1 -2
View File
@@ -101,11 +101,10 @@ def render_per_day():
plt.xlabel('Date') plt.xlabel('Date')
plt.ylabel('Event count') plt.ylabel('Event count')
plt.xticks(rotation=45) plt.xticks(rotation=45)
plt.style.use('dark_background')
plt.title('Keyboard events') plt.title('Keyboard events')
plt.tight_layout() plt.tight_layout()
plt.style.use('dark_background')
plt.legend() plt.legend()
plt.savefig(f"graph_per_day.png") plt.savefig(f"graph_per_day.png")
def render_per_week(): def render_per_week():
+2
View File
@@ -0,0 +1,2 @@
matplotlib