finish chores
This commit is contained in:
parent
64ad60a8e2
commit
1cc4af9c1b
24 changed files with 542 additions and 224 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue