feat: implement user authentication with JWT token generation and validation

This commit is contained in:
retoor 2025-01-12 16:54:05 +00:00
parent 9190a2444a
commit 93caaf4ad3
3 changed files with 5 additions and 2 deletions

View File

@ -39,6 +39,8 @@ html_content = ['<html>',
f'Total lines written: {return_count}',
'<br />',
f'Total lines per hour: {lines_per_hour}',
'<br />',
f'Total hours: {hour_count}',
'</b>',
'<br>',
]

View File

@ -101,11 +101,10 @@ def render_per_day():
plt.xlabel('Date')
plt.ylabel('Event count')
plt.xticks(rotation=45)
plt.style.use('dark_background')
plt.title('Keyboard events')
plt.tight_layout()
plt.style.use('dark_background')
plt.legend()
plt.savefig(f"graph_per_day.png")
def render_per_week():

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
matplotlib