mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
Small changes
This commit is contained in:
@@ -211,7 +211,7 @@ func (p *GNDProvider) fetchPerson(person xmlprovider.Agent) {
|
|||||||
|
|
||||||
for i := 0; i < 3; i++ {
|
for i := 0; i < 3; i++ {
|
||||||
response, err = http.DefaultClient.Do(request)
|
response, err = http.DefaultClient.Do(request)
|
||||||
if err == nil && 500 > response.StatusCode {
|
if err == nil && 400 > response.StatusCode {
|
||||||
if i > 0 {
|
if i > 0 {
|
||||||
logging.Info("Successfully fetched person: " + person.ID + " after " + strconv.Itoa(i) + " retries")
|
logging.Info("Successfully fetched person: " + person.ID + " after " + strconv.Itoa(i) + " retries")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,3 +88,8 @@
|
|||||||
|
|
||||||
([\s\(])((?:16|17|18|19|20)\d{2}–)*((?:16|17|18|19|20)\d{2})
|
([\s\(])((?:16|17|18|19|20)\d{2}–)*((?:16|17|18|19|20)\d{2})
|
||||||
$1<year>$2$3</year>
|
$1<year>$2$3</year>
|
||||||
|
|
||||||
|
Morgen:
|
||||||
|
- sync.Map für alle Kollektionen
|
||||||
|
- Eigene Funktionen zum willkürlichen Zugriff auf die sync.Map
|
||||||
|
- Eigene Funktionen für Datum etc
|
||||||
|
|||||||
Reference in New Issue
Block a user