Skip to content

Commit

Permalink
Merge branch 'jornh-fix-csv-badges' of https://github.com/jornh/amund…
Browse files Browse the repository at this point in the history
…sendatabuilder into jornh-fix-csv-badges

Signed-off-by: jornh <jornhansen@gmail.com>
  • Loading branch information
jornh committed Dec 3, 2020
2 parents 004fc41 + 38cac2d commit 64c7164
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions databuilder/models/badge.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import logging
from typing import Any, List, Optional
import re

from databuilder.models.graph_serializable import GraphSerializable
from databuilder.models.graph_node import GraphNode
from databuilder.models.graph_relationship import GraphRelationship

LOGGER = logging.getLogger(__name__)


class Badge:
def __init__(self, name: str, category: str):
Expand Down Expand Up @@ -45,8 +42,6 @@ def __init__(self,
):
self.badges = badges

LOGGER.info(f"Badges model: got list '{badges}' for '{start_label}'")

table_key_pattern = re.compile('[a-z]+://[a-zA-Z0-9_.-]+.[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+')
dashboard_key_pattern = re.compile('[a-z]+_dashboard://[a-zA-Z0-9_.-]+.[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+')
column_key_pattern = re.compile('[a-z]+://[a-zA-Z0-9_.-]+.[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+')
Expand Down Expand Up @@ -112,9 +107,6 @@ def create_nodes(self) -> List[GraphNode]:
return results

def create_relation(self) -> List[GraphRelationship]:
"""
:return: List[GraphRelationship]
"""
results: List[GraphRelationship] = []
for badge in self.badges:
relation = GraphRelationship(
Expand Down

0 comments on commit 64c7164

Please sign in to comment.