Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Faker==4.0.2
Flask-Script==2.0.6

# SQL database (MS SQL)
pyodbc==4.0.30
flask_sqlalchemy==2.4.1

# Handling requests
Expand Down
4 changes: 0 additions & 4 deletions time_tracker_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@

api.add_namespace(activities_namespace.ns)

from time_tracker_api.technologies import technologies_namespace

api.add_namespace(technologies_namespace.ns)

from time_tracker_api.time_entries import time_entries_namespace

api.add_namespace(time_entries_namespace.ns)
Expand Down
71 changes: 0 additions & 71 deletions time_tracker_api/technologies/technologies_namespace.py

This file was deleted.

17 changes: 12 additions & 5 deletions time_tracker_api/time_entries/time_entries_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@
description='The id of the selected activity',
example=faker.random_int(1, 9999),
),
'technologies': fields.String(
required=True,
title='Technologies',
max_length=64,
description='Canonical names of the used technologies during this period',
'technologies': fields.List(
fields.String(
required=True,
title='Technologies',
max_length=64,
description='Canonical names of the used technologies during this period',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this description more clear for you?

Technology names used in this time-entry

),
example=faker.words(
3,
['java', 'elixir', 'python', 'docker'],
unique=True
)
),
'description': fields.String(
title='Comments',
Expand Down