finish chores

This commit is contained in:
gidsi 2019-04-02 22:14:49 +02:00
commit 1cc4af9c1b
No known key found for this signature in database
GPG key ID: B47291090A6E5604
24 changed files with 542 additions and 224 deletions

View file

@ -98,7 +98,7 @@ func readSpaceurl() []SpaceUrl {
return result
}
func deleteSpaceurl(id string) {
func deleteSpaceurl(url string) {
session, err := mgo.Dial(config.MongoDbServer)
if err != nil {
panic(err)
@ -108,7 +108,7 @@ func deleteSpaceurl(id string) {
session.SetMode(mgo.Monotonic, true)
c := session.DB(config.MongoDbDatabase).C("spaceurl")
c.Remove(bson.M{"_id": id})
c.Remove(bson.M{"url": url})
}
func readCalendar() []Calendar {