mirror of
https://github.com/pds-nest/nest.git
synced 2025-02-16 12:43:58 +00:00
Merge branch 'main' of zero.ryg.one:nest/g2-progetto
This commit is contained in:
commit
50afa1ff28
4 changed files with 56 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
|||
# Log riunioni collettive dello Sprint 2
|
||||
# Log riunioni collettive dello Sprint 3
|
||||
|
||||
| Data | Ora | Durata | Attività |
|
||||
|------|-----|--------|----------|
|
||||
| | | | |
|
||||
|
||||
Totale generale di tutti i componenti: 12.0h
|
||||
Totale generale di tutti i componenti: 12.5h
|
||||
|
||||
|
||||
# Log attività individuali dello Sprint 2
|
||||
# Log attività individuali dello Sprint 3
|
||||
|
||||
|
||||
|
||||
|
@ -75,8 +75,9 @@ Chiara Calzolari - UI Designer
|
|||
| 24/05 | 2.0h | Traduzione UI
|
||||
| 24/05 | 1.0h | Traduzione UI
|
||||
| 25/05 | 1.0h | Traduzione UI
|
||||
| 27/05 | 0.5h | Traduzione UI
|
||||
|-------|--------|
|
||||
|totale| 12.0h |
|
||||
|totale| 12.5h |
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -185,6 +185,9 @@ def page_alert(aid):
|
|||
if not condition.repository_id:
|
||||
ext.session.delete(condition)
|
||||
ext.session.commit()
|
||||
for notification in alert.notifications:
|
||||
ext.session.delete(notification)
|
||||
ext.session.commit()
|
||||
ext.session.delete(alert)
|
||||
ext.session.commit()
|
||||
except Exception as e:
|
||||
|
|
|
@ -181,6 +181,44 @@ def page_repository(rid):
|
|||
if repository.owner_id != user.email and not user.isAdmin:
|
||||
return json_error("You are not the owner of this repository.", REPOSITORY_NOT_OWNER), 403
|
||||
try:
|
||||
# Deleting Tweets...
|
||||
tweets = [t.tweet for t in repository.tweets]
|
||||
for tweet in tweets:
|
||||
if len(tweet.repositories) < 2:
|
||||
# Delete Tweets if only attached to this repo
|
||||
for conn in tweet.repositories:
|
||||
ext.session.delete(conn)
|
||||
for conn in tweet.conditions:
|
||||
ext.session.delete(conn)
|
||||
ext.session.delete(tweet)
|
||||
ext.session.commit()
|
||||
else:
|
||||
conns = [conn for conn in tweet.repositories if conn.rid == rid]
|
||||
for conn in conns:
|
||||
ext.session.delete(conn)
|
||||
ext.session.commit()
|
||||
# Deleting authorizations...
|
||||
for auth in repository.authorizations:
|
||||
ext.session.delete(auth)
|
||||
ext.session.commit()
|
||||
# Deleting conditions...
|
||||
for condition in repository.conditions:
|
||||
ext.session.delete(condition)
|
||||
ext.session.commit()
|
||||
# Deleting Alerts...
|
||||
for alert in repository.alerts:
|
||||
for elem in alert.conditions:
|
||||
condition = elem.condition
|
||||
ext.session.delete(elem)
|
||||
ext.session.commit()
|
||||
if not condition.repository_id:
|
||||
ext.session.delete(condition)
|
||||
ext.session.commit()
|
||||
for notification in alert.notifications:
|
||||
ext.session.delete(notification)
|
||||
ext.session.commit()
|
||||
ext.session.delete(alert)
|
||||
ext.session.commit()
|
||||
ext.session.delete(repository)
|
||||
ext.session.commit()
|
||||
except Exception as e:
|
||||
|
|
|
@ -16,8 +16,8 @@ export default {
|
|||
appFullName: "Noi Estraiamo Statistiche Tweet",
|
||||
welcomeToNest: "Benvenuto a N.E.S.T.!",
|
||||
|
||||
resolutionTooSmall: "Per visualizzare correttamente questa applicazione è richiesto uno schermo con risoluzione 1366x768 o superiore.", // TODO: Tradurre
|
||||
ignore: "Visualizza comunque", // TODO: Tradurre
|
||||
resolutionTooSmall: "Per visualizzare correttamente questa applicazione è richiesto uno schermo con risoluzione 1366x768 o superiore.",
|
||||
ignore: "Visualizza comunque",
|
||||
|
||||
server: "Scegli un server",
|
||||
baseURL: "Base URL",
|
||||
|
@ -150,7 +150,7 @@ export default {
|
|||
errorServerNotConfigured: "Errore: Non è stato configurato nessun server.",
|
||||
errorDecodeError: "Errore: Non è stato possibile deserializzare i dati ricevuti dal backend.",
|
||||
errorSerializationError: "Errore: Non è stato possibile serializzare i dati da inviare al backend.",
|
||||
errorPageNotFound: "Errore: Pagina non trovata.", // TODO: Tradurre
|
||||
errorPageNotFound: "Errore: Pagina non trovata.",
|
||||
},
|
||||
// 🇬🇧
|
||||
en: {
|
||||
|
@ -158,6 +158,9 @@ export default {
|
|||
appFullName: "We Extract Statistics from Tweets",
|
||||
welcomeToNest: "Welcome to N.E.S.T.!",
|
||||
|
||||
resolutionTooSmall: "To correctly visualize this application, a screen with resolution 1366x768 or higher is required.",
|
||||
ignore: "View anyway",
|
||||
|
||||
server: "Choose a server",
|
||||
baseURL: "Base URL",
|
||||
notLoggedIn: "Not logged in",
|
||||
|
@ -296,6 +299,9 @@ export default {
|
|||
appFullName: "Poimimme Twiittien Tilastot",
|
||||
welcomeToNest: "Tervetuloa N.E.S.T.:hen!", //Certo che il Finlandese è proprio strano
|
||||
|
||||
resolutionTooSmall: "Tämän sovelluksen asianmukainen katselu edellyttää näyttöä, jonka resoluutio on vähintään 1366x768.",
|
||||
ignore: "Näytä joka tapauksessa",
|
||||
|
||||
server: "Valitse palvelin",
|
||||
baseURL: "Perus-URL",
|
||||
notLoggedIn: "Ei kirjautunut sisään",
|
||||
|
@ -309,7 +315,7 @@ export default {
|
|||
byZone: "vyöhykkeen mukaan",
|
||||
byHashtag: "hashtagin mukaan",
|
||||
byUser: "käyttäjän mukaan",
|
||||
byRetweet: "uudelleentwiittaus", //Il finlandese è strano, parte 2
|
||||
byRetweet: "uudelleentwiittauksen mukaan",
|
||||
isNotRetweetExplaination: "Piilota uudelleentwiittaukset.",
|
||||
byHasImage: "kuva",
|
||||
hasImageExplaination: "Näytä vain twiitit, joissa on kuva.",
|
||||
|
|
Loading…
Add table
Reference in a new issue