mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-22 16:08:50 +01:00
updated flake and desktop files
This commit is contained in:
parent
a13a49d55d
commit
2be0fe9b6f
3 changed files with 18 additions and 8 deletions
|
@ -149,6 +149,7 @@
|
||||||
time.hardwareClockInLocalTime = true;
|
time.hardwareClockInLocalTime = true;
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
nix.settings.trusted-users = [ "root" "thilo" ];
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"electron-24.8.6"
|
"electron-24.8.6"
|
||||||
|
|
12
flake.lock
12
flake.lock
|
@ -84,11 +84,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698670511,
|
"lastModified": 1698896213,
|
||||||
"narHash": "sha256-jQIu3UhBMPHXzVkHQO1O2gg8SVo5lqAVoC6mOaLQcLQ=",
|
"narHash": "sha256-u42NZt52F3o7pM5V7sYlLOp5tSN8z9+fO2wFcOs0EOQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "8e5416b478e465985eec274bc3a018024435c106",
|
"rev": "831b4fa31749208e576050c563e9773aafd04941",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -222,11 +222,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698610559,
|
"lastModified": 1698956996,
|
||||||
"narHash": "sha256-i8vFNXJz9VcH05oNe/3Jm5f+CtE3g5uOUvF/dobTMUQ=",
|
"narHash": "sha256-X029F/YpX0HoE5ppGaVWY+arqI2DokggQtJACSl67+8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4e43dd49630303b00120c11d00d4fb01bb40188d",
|
"rev": "e8be045c25d93f18f3530ac2dfa264750c6778b7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -9,7 +9,16 @@ df = pd.read_csv(sys.argv[1])
|
||||||
df = df.drop(columns=['User', 'Email', 'Billable', 'Tags', 'Amount ()', 'Start time', 'End date', 'End time'])
|
df = df.drop(columns=['User', 'Email', 'Billable', 'Tags', 'Amount ()', 'Start time', 'End date', 'End time'])
|
||||||
df['Duration'] = pd.to_timedelta(df['Duration'])
|
df['Duration'] = pd.to_timedelta(df['Duration'])
|
||||||
df['Start date'] = pd.to_datetime(df['Start date'])
|
df['Start date'] = pd.to_datetime(df['Start date'])
|
||||||
|
df['duration_dec'] = df['Duration'].dt.total_seconds() / 3600
|
||||||
|
df.rename(columns={
|
||||||
|
'Project': 'project',
|
||||||
|
'Description': 'description',
|
||||||
|
'Start date': 'day',
|
||||||
|
'Duration': 'duration'
|
||||||
|
}, inplace=True)
|
||||||
|
|
||||||
df = df.groupby(['Project','Description','Start date'])['Duration'].sum()
|
df = df.groupby(['project','description','day'], as_index=False).agg({'duration': 'sum'})
|
||||||
|
df['duration'] = round(df['duration'].dt.total_seconds() / 60 / 60, 2)
|
||||||
|
print("Total hours are: ", round(df['duration'].sum(), 2))
|
||||||
|
|
||||||
df.to_csv(Path(sys.argv[1]).stem + '-grouped.csv')
|
df.to_csv(Path(sys.argv[1]).stem + '-grouped.csv', index=False)
|
Loading…
Reference in a new issue