Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
berlin-mapping-application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noah Jefferson Baumann
berlin-mapping-application
Commits
d739075c
Commit
d739075c
authored
5 months ago
by
Noah Jefferson Baumann
Browse files
Options
Downloads
Patches
Plain Diff
fixed models.py to remove edges id
parent
cd9088d9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/models.py
+0
-2
0 additions, 2 deletions
backend/models.py
with
0 additions
and
2 deletions
backend/models.py
+
0
−
2
View file @
d739075c
...
@@ -32,7 +32,6 @@ class Node(Base):
...
@@ -32,7 +32,6 @@ class Node(Base):
# Example for Edge model
# Example for Edge model
class
Edge
(
Base
):
class
Edge
(
Base
):
__tablename__
=
'
edges
'
__tablename__
=
'
edges
'
id
=
Column
(
String
,
primary_key
=
True
)
source
=
Column
(
String
)
source
=
Column
(
String
)
target
=
Column
(
String
)
target
=
Column
(
String
)
label
=
Column
(
String
)
label
=
Column
(
String
)
...
@@ -45,7 +44,6 @@ class Edge(Base):
...
@@ -45,7 +44,6 @@ class Edge(Base):
def
to_dict
(
self
):
def
to_dict
(
self
):
return
{
return
{
'
id
'
:
self
.
id
,
'
source
'
:
self
.
source
,
'
source
'
:
self
.
source
,
'
target
'
:
self
.
target
,
'
target
'
:
self
.
target
,
'
label
'
:
self
.
label
,
'
label
'
:
self
.
label
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment