func (VS *Server) showSynchronizations(opt SyncOptions) gin.HandlerFunc {
	return func(c *gin.Context) {
		var syncs []Synchronization
		if opt == exp {
			syncs = VS.getAllSynchronizationsByVillageEmitter(c, VS.getLocalVillage(c, "h_settings", "showSynchronizations", "getAllSynchronizationsByVillageEmitter(c, VS.getLocalVillage").ID, "h_settings", "showSynchronizations", "syncs = VS.getAllSynchronizationsByVillageEmitter")
		} else if opt == imp {
			syncs = VS.getAllSynchronizationsByVillageReceiver(c, VS.getLocalVillage(c, "h_settings", "showSynchronizations", "getAllSynchronizationsByVillageReceiver(c, VS.getLocalVillage").ID, "h_settings", "showSynchronizations", "syncs = VS.getAllSynchronizationsByVillageEmitter")
		}
		sHTML := VS.syncsToHTML(c, syncs)
		JSON, err := json.Marshal(sHTML)
		VS.checkOperation(c, "h_settings", "showSynchronizations", "sHTML := VS.syncsToHTML(c, syncs)", err)
		render(c, gin.H{
			"JSON":  string(JSON),
			"opt":   opt,
			"syncs": syncs,
		}, "synchronizations.html")
	}
}
// This handler shows all the synchronizations of the system between the Central DataBase and the villages
This handler shows all the synchronizations of the system between the Central DataBase and the villages
// This handler shows all the synchronizations of the system between the Central DataBase and the villages
func (VS *Server) showSynchronizations(opt SyncOptions) gin.HandlerFunc {
	return func(c *gin.Context) {
		var syncs []Synchronization
		if opt == exp {
			syncs = VS.getAllSynchronizationsByVillageEmitter(c, VS.getLocalVillage(c, "h_settings", "showSynchronizations", "getAllSynchronizationsByVillageEmitter(c, VS.getLocalVillage").ID, "h_settings", "showSynchronizations", "syncs = VS.getAllSynchronizationsByVillageEmitter")
		} else if opt == imp {
			syncs = VS.getAllSynchronizationsByVillageReceiver(c, VS.getLocalVillage(c, "h_settings", "showSynchronizations", "getAllSynchronizationsByVillageReceiver(c, VS.getLocalVillage").ID, "h_settings", "showSynchronizations", "syncs = VS.getAllSynchronizationsByVillageEmitter")
		}
		sHTML := VS.syncsToHTML(c, syncs)
		JSON, err := json.Marshal(sHTML)
		VS.checkOperation(c, "h_settings", "showSynchronizations", "sHTML := VS.syncsToHTML(c, syncs)", err)
		render(c, gin.H{
			"JSON":  string(JSON),
			"opt":   opt,
			"syncs": syncs,
		}, "synchronizations.html")
	}
}
func ( VS * Server ) showSynchronizations ( opt SyncOptions ) gin . HandlerFunc { return func ( c * gin . Context ) { var syncs [ ] Synchronization if opt == exp { syncs = VS . getAllSynchronizationsByVillageEmitter ( c , VS . getLocalVillage ( c , " " , " " , " " ) . ID , " " , " " , " " ) } else if opt == imp { syncs = VS . getAllSynchronizationsByVillageReceiver ( c , VS . getLocalVillage ( c , " " , " " , " " ) . ID , " " , " " , " " ) } sHTML := VS . syncsToHTML ( c , syncs ) JSON , err := json . Marshal ( sHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : string ( JSON ) , " " : opt , " " : syncs , } , " " ) } }
This handler shows all the synchronizations of the system between the Central DataBase and the villages
This handler shows all the synchronizations of the system between the Central DataBase and the villages