Skip to content

Commit

Permalink
Merge pull request #8 from 5genesis/moment-fix
Browse files Browse the repository at this point in the history
Moment fix
  • Loading branch information
NaniteBased authored Jun 24, 2021
2 parents e49387f + 4bd1388 commit a81ac60
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
**24/06/2021** [Version 2.4.4]

- Add generic 'Core' location
- Update Flask-moment dependency

*Update notes*:

- In case of issues with the rendering of dates or exceptions related to `moment` or `Flask-moment`,
re-run `pip install -r requirements.txt` over the activated Portal virtualenv.

**08/06/2021** [Version 2.4.3]

- Add 'None' as selectable scenario
Expand Down
3 changes: 3 additions & 0 deletions app/network_services/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def create():
if error is not None:
flash(error, 'error')

if 'Core' not in locations:
locations.insert(0, 'Core')

return render_template('network_services/create.html', title='New Network Service', form=form, locations=locations,
ewEnabled=Config().EastWest.Enabled)

Expand Down
1 change: 0 additions & 1 deletion app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

{% block scripts %}
{{ super() }}
{{ moment.include_jquery() }}
{{ moment.include_moment() }}
<script src="{{ url_for('static', filename='js/nanobar.min.js') }}"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Flask-Bootstrap>=3.3.7.1
Flask-Login>=0.4.1
Flask-Mail>=0.9.1
Flask-Migrate>=2.4.0
Flask-Moment>=0.7.0
Flask-Moment>=1.0.1
Flask-SQLAlchemy>=2.3.2
Flask-WTF>=0.14.2
PyJWT>=1.7.1
Expand Down

0 comments on commit a81ac60

Please sign in to comment.