Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 87e327c

Browse files
committedFeb 16, 2024
zamn
1 parent 7410fa7 commit 87e327c

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed
 

‎TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ llvm reference
22
## llvm reference
33

44
- ~~raw -> avgs+medians and vice versa~~
5-
- data page have amount of matche instead of 0.00
5+
- ~~data page have amount of matche instead of 0.00~~
66
- ~~turn text grid into table on teamlookup~~
77
- ~~change feeder ground and defense to true or else, 14, 15, 17~~

‎data.db

0 Bytes
Binary file not shown.

‎main.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var headers map[string]int = map[string]int{
3939
}
4040

4141
var matchNumbers = map[string][]string{}
42+
var matchNumbersR = map[string]string{} //llvm reference comment node
4243

4344
func populate(db *gorm.DB, allData []data.Schema, tcp [][]string, fields []string) ([][]string, []data.Schema) {
4445
//reflection no tneeded
@@ -55,6 +56,7 @@ func populate(db *gorm.DB, allData []data.Schema, tcp [][]string, fields []strin
5556
fields[j] = v.Field(j).Interface() //reflection my belobed
5657
}
5758
//opengl reference
59+
// llvm golang sdk reference sinc ei compile to ir
5860
//mmap syscall
5961
vala := []string{}
6062
//supposde to be emtpy fields to be filled populated
@@ -301,6 +303,10 @@ func main() {
301303
teamLookup.Resize(fyne.NewSize(1200, 600))
302304
teamLookup.SetFixedSize(true)
303305

306+
matchLookup := apptcpjwt.NewWindow("Match Lookup")
307+
matchLookup.Resize(fyne.NewSize(1200, 600))
308+
matchLookup.SetFixedSize(true)
309+
304310
averageTable := widget.NewTable(
305311
func() (int, int) {
306312
return len(x), len(x[0])
@@ -335,7 +341,9 @@ func main() {
335341
teamLookup.Hide()
336342
})
337343
inputTeam := widget.NewEntry()
344+
inputMatch := widget.NewEntry()
338345
inputTeam.SetPlaceHolder("Team Number")
346+
inputMatch.SetPlaceHolder("Match Number")
339347
matches := widget.NewLabel("")
340348
//teamData := widget.NewTextGridFromString("LLVM REFERENCE\nJWTAUTH")
341349
//teamDataMedians := widget.NewTextGridFromString("LLVM REFERENCE\nJWTAUTH")
@@ -355,6 +363,9 @@ func main() {
355363
o.(*widget.Label).SetText(currentAverages[i.Row][i.Col])
356364
})
357365
teamButton := widget.NewButton("LOOKUP", func() {
366+
if inputTeam.Text == "" {
367+
return
368+
}
358369
avg := []string{"Averages: "}
359370
for _, v := range x {
360371
if v[1] == inputTeam.Text {
@@ -373,6 +384,9 @@ func main() {
373384
}
374385
matches.SetText("Matches: " + strings.Join(matchNumbers[inputTeam.Text], ",") + " (" + fmt.Sprintf("%v", len(matchNumbers[inputTeam.Text])) + ")")
375386
importantGeneralData.Refresh()
387+
})
388+
matchButton := widget.NewButton("LOOKUP", func() {
389+
376390
})
377391
vsplit := container.NewVSplit(container.NewVBox(inputTeam, teamButton, matches), importantGeneralData)
378392
vsplit.SetOffset(0)
@@ -388,7 +402,7 @@ func main() {
388402
if len(tcp) == 0 {
389403
return 0, 0
390404
}
391-
return len(tcp), len(tcp[0])
405+
return len(tcp), len(tcp[0]) //llvm
392406
},
393407
func() fyne.CanvasObject {
394408
return widget.NewLabel("placeholder")

0 commit comments

Comments
 (0)
Please sign in to comment.