Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Klaehn
e84ab19187 gpx_parser: Adapt dates evaluation to new pandas version 2022-02-16 09:37:43 +01:00
Thomas Klaehn
7f7c65e3fa VSCode: Add development container
Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
2022-02-16 09:36:43 +01:00
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,30 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.163.1/containers/cpp
{
"name": "bicycle-statistics",
"image": "bic-dev:latest",
// --network=host is necessary, since default docker network does not transport mdns|dns-sd, since they route through docker0
// "runArgs": [ "--network=host", "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.defaultProfile.linux.shell":"/bin/sh"
},
// Add the IDs of extensions you want installed when the container is created.
// "extensions": [
// "ms-vscode.cpptools"
// ],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "gcc -v",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode",
// "postStartCommand" : "sudo rm /var/run/avahi-daemon/pid; sudo avahi-daemon --no-drop-root --no-chroot -D || true",
}

View File

@ -114,6 +114,6 @@ class Tracks(object):
tracks = list()
dates = pd.date_range(start_date.date(), end_date.date())
for track in self.__tracks:
if track.start_time.date() in dates:
if track.start_time.date() in dates.date:
tracks.append(track)
return tracks