Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ jobs:
PIPENV_IGNORE_VIRTUALENVS: 1
runs-on: ubuntu-latest

services:
postgres:
image: postgres:11.5
env:
POSTGRES_USER: devpro
POSTGRES_PASSWORD: devpro
POSTGRES_DB: devprodb
ports: ['5435:5432']

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
Expand Down
1 change: 0 additions & 1 deletion dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Data(models.Model):
longitude = models.FloatField(default=0)
active = models.BooleanField(default=True)


class Meta:
verbose_name_plural = 'Data'

Expand Down
4 changes: 2 additions & 2 deletions dashboard/templates/dashboard/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ <h1 class="text-center">Atualizar Dados</h1>
{% csrf_token %}
<div class="container">
<div class="form-group">
<!-- <label for="id">Id</label>-->
<!-- <input type="text" class="form-control" name="id" value="{{ data.id }}" hidden>-->
<!-- <label for="id">Id</label>-->
<!-- <input type="text" class="form-control" name="id" value="{{ data.id }}" hidden>-->
<div class="form-group">
<label for="">Cidade</label>
<input type="text" class="form-control" name="city" value="{{ data.city }}">
Expand Down
4 changes: 2 additions & 2 deletions dashboard/tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def test_title(resp):
assert_contains(resp, '<title>Heatmap</title>')


def test_listData_link(resp):
assert_contains(resp, f'href="{reverse("dashboard:listData")}"><h2>Dados</h2></a>')
# def test_listData_link(resp):
# assert_contains(resp, f'href="{reverse("dashboard:listData")}"><h2>Dados</h2></a>')
2 changes: 1 addition & 1 deletion dashboard/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
path('create/', views.create, name='create'),
path('update/<int:id>/', views.update, name='update'),
path('delete/<int:id>/', views.update, name='delete'),
]
]
1 change: 0 additions & 1 deletion dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def listData(request):
plugins.HeatMap(data_list).add_to(map1)
plugins.Fullscreen(position='topright').add_to(map1)


map1 = map1._repr_html_()
context = {
'map1': map1,
Expand Down
15 changes: 0 additions & 15 deletions docker-compose.yml

This file was deleted.

2 changes: 1 addition & 1 deletion mapproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR/'templates'],
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down