Revision da98f5f51e52bd0f9b37b399631a28e4c97ac695 authored by Antoine R. Dumont (@ardumont) on 12 March 2020, 18:54:21 UTC, committed by Antoine R. Dumont (@ardumont) on 13 March 2020, 13:09:42 UTC
Prior to this commit, there was:
- no signature in the method
- discrepancy between checks on the different backend

origin_visit_add endpoint is now typed
```
def origin_visit_add(
    self, origin_url: str,
    date: Union[str, datetime.datetime], type: str) -> OriginVisit:
```

This also:
- renames appropriately the origin_url parameter (removing 1 FIXME)
- align backend implementations' check which were different
1 parent 0456cce
History
File Mode Size
bin
docs
sql
swh
.gitignore -rw-r--r-- 136 bytes
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 46 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 242 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 69 bytes
README.md -rw-r--r-- 4.2 KB
mypy.ini -rw-r--r-- 889 bytes
pytest.ini -rw-r--r-- 392 bytes
requirements-swh-journal.txt -rw-r--r-- 22 bytes
requirements-swh.txt -rw-r--r-- 73 bytes
requirements-test.txt -rw-r--r-- 318 bytes
requirements.txt -rw-r--r-- 104 bytes
setup.py -rwxr-xr-x 2.4 KB
tox.ini -rw-r--r-- 533 bytes

README.md

back to top