-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from hackforla/101-BCK-Tests
Added linting and correctly implemented the backend github action
- Loading branch information
Showing
12 changed files
with
335 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
exclude = node_modules/*, dataAnalysis/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
from .sqlIngest import DataHandler | ||
|
||
|
||
class ingress_service(object): | ||
def __init__(self, config=None): | ||
self.config = config | ||
|
||
|
||
async def ingest(self, from_dataset=None): | ||
loader = DataHandler(config=self.config) | ||
loader.loadData(fileName=from_dataset) | ||
loader.cleanData() | ||
loader.ingestData() | ||
return {'response':'ingest ok'} | ||
return {'response': 'ingest ok'} | ||
|
||
def update(self): | ||
return {'response':'update ok'} | ||
return {'response': 'update ok'} | ||
|
||
def delete(self): | ||
return {'response':'delete ok'} | ||
return {'response': 'delete ok'} | ||
|
||
def hello_world(self): | ||
return {'response':'hello from frequency service'} | ||
return {'response': 'hello from frequency service'} | ||
|
||
|
||
if __name__ == "__main__": | ||
from configparser import ConfigParser | ||
config = ConfigParser() | ||
config.read('../settings.cfg') | ||
worker = ingress_service(config = config) | ||
worker = ingress_service(config=config) | ||
worker.ingest() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.