Skip to content

Commit 151de90

Browse files
committed
general code cleanup
1 parent b375504 commit 151de90

14 files changed

Lines changed: 672 additions & 157 deletions

File tree

.vscode/launch.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
52
"version": "0.2.0",
63
"configurations": [
74
{

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If you believe someone is violating the code of conduct, we ask that you report
1212

1313
- **Be friendly and patient.**
1414
- **Be welcoming.** We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to members of any race, ethnicity, culture, national origin, colour, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability.
15-
- **Be considerate.** Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
15+
- **Be considerate.** Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences of account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
1616
- **Be respectful.** Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one. Members of the OpenNPL community should be respectful when dealing with other members as well as with people outside the OpenNPL community.
1717
- **Be careful in the words that you choose.** We are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behavior aren't acceptable. This includes, but is not limited to:
1818
- Violent threats or language directed against another person.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Use this section to tell people about which versions of your project are currently being supported with security updates.
66

77
| Version | Supported |
8-
| ------- | ------------------ |
8+
|---------|--------------------|
99
| 5.1.x | :white_check_mark: |
1010
| 5.0.x | :x: |
1111
| 4.0.x | :white_check_mark: |

dashboard.py

Lines changed: 0 additions & 133 deletions
This file was deleted.

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ services:
66
working_dir: /opennpl
77
command: python manage.py runserver 0.0.0.0:8080
88
ports:
9-
- 8080:8080
9+
- "8080:8080"
1010
env_file:
1111
- ./.env.dev
1212
postgres:
1313
build: ./docker/postgres
1414
working_dir: /opennpl
1515
command: python manage.py runserver 0.0.0.0:8081
1616
ports:
17-
- 8081:8081
17+
- "8081:8081"
1818
env_file:
1919
- ./.env.dev

openNPL/sflp_serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class SFLP_LoanSerializer(serializers.ModelSerializer):
112112

113113
class Meta:
114114
model = Loan
115-
fields = ('id', 'contract_identifier', 'link')
115+
fields = ('id', 'loan_identifier', 'link')
116116

117117
def get_link(self, obj):
118118
link = ROOT_VIEW + "/api/SFLP_data/loans/" + str(obj.pk)
@@ -133,7 +133,7 @@ class SFLP_PropertyCollateralSerializer(serializers.ModelSerializer):
133133

134134
class Meta:
135135
model = PropertyCollateral
136-
fields = ('id', 'protection_identifier', 'link')
136+
fields = ('id', 'loan_identifier', 'link')
137137

138138
def get_link(self, obj):
139139
link = ROOT_VIEW + "/api/SFLP_data/property_collateral/" + str(obj.pk)

openNPL/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
path('admin/doc/', include('django.contrib.admindocs.urls')), #
4747
path('admin/', admin.site.urls),
4848
path('', include('start.urls')), # start URLS
49+
path('markdownfield/', include('markdownfield.urls')),
4950
path(r'api/', api_root, name='api_root'), # Overall API root
5051
# NPL Data URL's
5152
path(r'api/npl_data/', include(('npl_portfolio.urls', 'npl_portfolio'), namespace='npl_portfolio')),

sflp_portfolio/management/commands/load_static_sflp_csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Command(BaseCommand):
8080

8181
loan_dict = {}
8282
for index, entry in loan_data.iterrows():
83-
if (i < LOAN_COUNT):
83+
if i < LOAN_COUNT:
8484
loan = Loan.objects.create(
8585
id=i,
8686
loan_identifier=entry[0],

start/static/start/css/datatables.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@charset "UTF-8";
12
/*
23
* This combined file was created by the DataTables downloader builder:
34
* https://datatables.net/download
@@ -10,7 +11,6 @@
1011
* DataTables 1.11.5, Responsive 2.2.9
1112
*/
1213

13-
@charset "UTF-8";
1414
table.dataTable th.dt-left,
1515
table.dataTable td.dt-left {
1616
text-align: left;
@@ -118,7 +118,6 @@ table.dataTable {
118118
}
119119
table.dataTable td,
120120
table.dataTable th {
121-
-webkit-box-sizing: content-box;
122121
box-sizing: content-box;
123122
}
124123
table.dataTable td.dataTables_empty,
@@ -460,7 +459,6 @@ div.dtr-modal div.dtr-modal-display {
460459
overflow: auto;
461460
margin: auto;
462461
z-index: 102;
463-
overflow: auto;
464462
background-color: #f5f5f7;
465463
border: 1px solid black;
466464
border-radius: 0.5em;

0 commit comments

Comments
 (0)